@(myform: Form[Application.Login])

<head>
 <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/signin.css")">
</head>

@import helper._
@import helper.twitterBootstrap._


@helper.form(routes.Application.authenticate, 'class -> "form-signin") {

            <h3 class="form-signin-heading">请登录</h3>

            @if(myform.hasGlobalErrors) { 
                <p class="error">
                    @myform.globalError.message
                </p>
            }
            
            @if(flash.contains("success")) {
                <p class="success">
                    @flash.get("success")
                </p>
            }
             

                @helper.input(myform("name"), '_label->"") { (id, name, value, args) =>
                    <input type="name" class="form-control" name="@name" value="@value" placeholder="邮箱" id="@id" required="" autofocus="" @toHtmlArgs(args)>
                } 


            

                @helper.input(myform("password"), '_label->"") { (id, name, value, args) =>
                    <input type="password" class="form-control" name="@name" value="@value" placeholder="密码" id="@id" required="" @toHtmlArgs(args)>
                }

                <label class="checkbox">
                    <input type="checkbox" value="remember-me"> 记住我
                </label>
            
               <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
                    
               <a href="@routes.Application.register">注册</a>

            
        }